import { PropType } from 'vue';
import { MciInput } from '../Input';
import './index.scss';

export const MciTextarea = defineComponent({
  props: {
    rows: {
      type: Number,
      default: 2
    },
    mode: {
      type: String as PropType<TVitalModeType>,
      default: ''
    },
    placeholder: {
      type: String,
      default: '请输入'
    }
  },
  render() {
    return <MciInput class="mci-textarea" mode={this.mode} type="textarea" rows={this.rows} placeholder={this.placeholder} />;
  }
});
